package com.ssy.lingxi.platform.manage.api.feign.inner;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.hystrix.inner.ShopRuleActivityFeignFallback;
import com.ssy.lingxi.platform.manage.api.model.dto.shop.ShopMemberInfoDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * 商城能力-自营商城管理-自营商城配置(内部接口)
 *
 * @author lqa
 * @version 2.0.0
 * @date 2022/1/5
 */
@FeignClient(value = "platform-manage-service", fallback = ShopRuleActivityFeignFallback.class)
public interface ShopRuleActivityFeign {
    /**
     * 判断用户是否有自营商城
     *
     * @param dto 登录用户信息
     * @return 是否存在自营商城
     */
    @ApiOperation(value = "")
    @PostMapping("/manage/activity/shop/rule/feign/existShop")
    Wrapper<Boolean> existShop(@RequestBody @Valid ShopMemberInfoDTO dto);
}
